package cn.visu.dao;


import cn.visu.bean.Permission;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author chuxw
 * @since 2017-05-31
 */
@Service
public class PermissionDao {
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

    public List<Permission> listPermission(Permission permission) {
        return sqlSessionTemplate.selectList(Permission.class.getName() + "listPermission", permission);
    }

}
